package com.hd123.rumba.user;

import com.hd123.rumba.exception.StringTooLongException;
import com.hd123.rumba.runtime.IBaseEntity;

public interface IDepartment extends IBaseEntity {

  public static final String CAPTION_CODE = "代码";
  public static final String CAPTION_REMARK = "备注";
  public static final String CAPTION_NAME = "名称";
  public static final String PERMISSION_EDIT = "部门.编辑权";/* "department.edit"; */
  public static final String PERMISSION_VIEW = "部门.查看权";/* "department.view"; */
  public static final int LENGTH_CODE = 10;
  public static final int LENGTH_REMARK = 255;
  public static final int LENGTH_NAME = 50;

  public abstract String getCode();

  public abstract void setCode(String code) throws StringTooLongException;

  public abstract String getName();

  public abstract void setName(String name) throws StringTooLongException;

  public abstract String getRemark();

  public abstract void setRemark(String remark) throws StringTooLongException;

  public abstract String getCodeName();

  public abstract String getNameCode();

}
